#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades_v2.jar 23 23`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
else
  echo "Test Failed"
fi

echo "Test Case 2: Testing 25/25..."

tc=`java -jar Grades_v2.jar 25 25`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
else
  echo "Test Failed"
fi

echo "Test Case 3: Testing 55/50..."

tc=`java -jar Grades_v2.jar 55 50`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
else
  echo "Test Failed"
fi

echo "Test Case 4: Testing 20/20..."

tc=`java -jar Grades_v2.jar 20 20`

if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
else
  echo "Test Failed"
fi

echo "Test Case 5: Testing 100/100"

tc=`java -jar Grades_v2.jar 100 100`

if [ "$tc" = "Pass with distinction" ]
  then
  echo "Test Passed"
else
  echo "Test Failed"
fi

